package com.guigusuqi.hy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 新人推荐管理
 * </p>
 *
 * @author suqi
 * @since 2022-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hy_recommend")
@ApiModel(value="Recommend对象", description="新人推荐管理")
public class Recommend implements Serializable
{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "推荐人流水号")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "推荐人编号")
    private String openid;

    @ApiModelProperty(value = "推荐人姓名")
    private String nickname;

    @ApiModelProperty(value = "推荐人联系电话")
    private String phone;

    @ApiModelProperty(value = "推荐人性别")
    private String sex;

    @ApiModelProperty(value = "新人姓名")
    private String referralName;

    @ApiModelProperty(value = "新人联系电话")
    private String referralMobile;

    @ApiModelProperty(value = "推荐日期")
    private Date recomDate;

    @ApiModelProperty(value = "推荐备注")
    private String recomDetail;

    @ApiModelProperty(value = "是否审核")
    private String hasChecked;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic(value = "0" ,delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;

    @ApiModelProperty(value = "新人性别，0为男，1为女")
    private String referralSex;

}
